cmake_minimum_required(VERSION 2.8)

project(ONNXRunner)

# C++17 编译
set(CMAKE_CXX_STANDARD 17)

#set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")

# 指定头文件路径
set(INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
 
# 库文件路径 指定静态和动态文件目录
set(LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
 
#指定头文件目录
include_directories(${INC_DIR})
 
#链接库路径
link_directories(${LIB_DIR})

#创建共享库
add_library(ONNXRunner SHARED ONNXRunner.cpp)